package com.taotao.jdk;


import com.taotao.observer1.MsgObServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Observable;
import java.util.Observer;

/**
 * @Author: wangjin
 * @CreateTime: 2022-07-03  12:08
 */
@Slf4j
@Component
public class JdkMessageObServable implements MsgObServer {

    @Override
    public void update(Observable o, Object arg) {
        //Observable o 获得主题
        //Object arg 获得对象
          log.info("<接收到数据，开始发送短信>msg:{}",arg);
    }
}
